//
//  ICMTitleTextView.h
//  ICrEAM
//
//  Created by rainimute on 16/10/26.
//  Copyright © 2016年 mac. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol ICMTitleTextViewDelegate;

@interface ICMTitleTextView : UIView

@property (nonatomic, copy) NSString *title;

@property (nonatomic, copy) NSString *contentText;

@property (nonatomic, assign) BOOL canSelecte;

@property (nonatomic, assign) NSInteger limitedNum;

- (instancetype)initICMTitleTextViewWithFrame:(CGRect)frame title:(NSString*)title textViewHeight:(CGFloat)textViewHeight;
- (instancetype)initICMTitleClickTextViewWithFrame:(CGRect)frame title:(NSString*)title textViewHeight:(CGFloat)textViewHeight addTarget:(id)target selector:(SEL)selector;

+ (instancetype)creatICMTitleTextViewWithFrame:(CGRect)frame title:(NSString*)title textViewHeight:(CGFloat)textViewHeight;
+ (instancetype)createICMTitleClickTextViewWithFrame:(CGRect)frame title:(NSString*)title textViewHeight:(CGFloat)textViewHeight addTarget:(id)target selector:(SEL)selector;

@property (weak, nonatomic) id<ICMTitleTextViewDelegate> delegate;

@end

@protocol ICMTitleTextViewDelegate <NSObject>

@optional
//值变化调用此方法
- (void)iCMTitleTextViewValueChanged;

@end
